/*
 * TankStatus.cpp
 *
 *  Created on: Nov 8, 2011
 *      Author: gonzalo
 */

#include "TankStatus.h"

TankStatus::TankStatus(DTOTankStatus* tankStatus){
	this->owner = tankStatus->getOwner();
	this->posX = tankStatus->posX;
	this->posY = tankStatus->posY;
	this->angle = tankStatus->angle;
}

TankStatus::TankStatus(std::string owner,int posX,int posY,int angle) {
	this->owner = owner;
	this->posX = posX;
	this->posY = posY;
	this->angle = angle;
}

DTOTankStatus* TankStatus::transformInDTO(){
	return new DTOTankStatus(owner,posX,posY,angle);
}


std::string TankStatus::getOwner(){
	return owner;
}
int TankStatus::getPosX(){
	return posX;
}
int TankStatus::getPosY(){
	return posY;
}
int TankStatus::getAngle(){
	return angle;
}

TankStatus::~TankStatus() {}

